﻿Imports System.Data
Imports System.Data.OleDb
Imports DAO
Imports DTO

Public Class TuyenBus
    Shared dao As New TuyenDao
    Public Shared Function LayDanhSachTuyen() As DataTable
        Return dao.LayDanhSachTuyen()
    End Function
   

    Public Shared Function TimTuyen(ByVal tuyen As TuyenDto) As DataTable
        Return dao.TimTuyen(tuyen)
    End Function

    Public Shared Function TimTuyenTheoMaTuyen(ByVal maTuyen As Integer) As DataTable
        Return dao.TimTuyenTheoMaTuyen(maTuyen)
    End Function

    Public Shared Function ThemTuyen(ByVal tuyen As TuyenDto) As Integer
        Return dao.ThemTuyen(tuyen)
    End Function

    Public Shared Function CapNhatTuyen(ByVal tuyen As TuyenDto) As Integer
        Return dao.CapNhatTuyen(tuyen)
    End Function

    Public Shared Function XoaTuyen(ByVal maCanXoa As Long) As Integer
        Return dao.XoaTuyen(maCanXoa)
    End Function

End Class
